// JavaScript Document
$(document).ready(function(){
	$(".project_content_list_ul>li").hover(
	function(){
		$(this).find(".tool").css("display","block");
		$(this).css("border-color","#50abf2");
	},
	function(){
		$(this).find(".tool").css("display","none");
		$(this).css("border-color","#F9F9F9");
	});
	/*$(".add_project_content_text").click(function(){
		$("#model").css("display","block");
		$(".modal-body").css("display","block");
		$(".model_img").css("display","none");
		$(".modal-header>h4").html("发布内容");
	});
	$(".add_project_content_img").click(function(){
		$("#model").css("display","block");
		$(".modal-body").css("display","none");
		$(".model_img").css("display","block");
		$(".modal-header>h4").html("发布图片");
	});*/
	/*$(".close").click(function(){
		$("#model").css("display","none");
	});*/
	/*$(".del_btn").click(function(){
		alert("nihao");
		$(this).parents(".project_content_text_box").remove();
	});*/
	/*$(".img_del_btn").click(function(){
		$(".project_content_img_box").css("block","block");
	});*/
});
/*function addBlock(category){
	var content_box_object = $("#project_content_text_box");
	if(category=="text"){
		var string ='<div class="project_content_text_box"><form action="#" method="post"><div class="text-con-tit clearfix"><div class="text-con-tit-left"><span class="fz16">添加文本</span></div><div class="text-con-tit-right"><input type="button" value="删除" onclick="delete_content(this)" class="del_btn"><input type="button" class="text-con-tit-right-btn textSave" value="保存" /></div></div><div class="text-con-con"><textarea name="content" class="text-con-con-box">正文</textarea></div></form></div>';
		content_box_object.append(string);
	}else if(category=="img"){
		//var string ='<div class="project_content_img_box"><div class="img-con-tit clearfix"><div class="img-con-tit-left"><span class="fz16">添加文本</span></div><div class="img-con-tit-right"><input type="button" value="删除" class="img_del_btn"></div></div><div class="img_content"><div id="altContent"><h1>美图秀秀</h1></div></div></div>';
		//content_box_object.append(string);
		$(".project_content_img_box").css("display","block");
	}
}*/
function delete_content(string){
	//console.log(string);
	if(confirm("您确定要删除这内容吗？")){
		$(string).parents(".project_content_text_box").remove();
	}
}
function delete_img(string){
	if(confirm("您确定要删除这图片吗？")){
		$(".project_content_img_box").css("display","none");
	}
}